package com.bjkcst.baselib.protocolparse.example;

import com.bjkcst.baselib.protocolparse.ConvertorUtil;
import com.bjkcst.baselib.protocolparse.annotation.BeanFieldAnnotation;
import com.bjkcst.baselib.protocolparse.annotation.BeanFieldListAnnotation;

import java.util.ArrayList;

/**
 * @author: glc.
 * Date: 2023/1/9  17:26
 * Description:
 */
public class TByteListExamples {

    @BeanFieldListAnnotation(totalLength = 10,offset = 2)
    @BeanFieldAnnotation(order = 1)
    public ArrayList<Integer> litValue;

    public static void main(String[] args) {
        byte[] bytes = new byte[]{(byte)0x00,(byte)0x01,(byte)0x00,(byte)0x02,(byte)0x00,(byte)0x03,(byte)0x00,(byte)0x04,(byte)0x00,(byte)0x05};
        TByteListExamples tByteListExamples = ConvertorUtil.byteToObject(bytes, TByteListExamples.class);

    }
}
